
#include <stdint.h>
#include <stdio.h>


int16_t press_to_altitude(int16_t press) {
    float data = ((float)press)/100;
    data = 44306.601*(1-pow(data/101.325, (1/5.255)));  
    return (int16_t)data;
}

int main(void) {
    int16_t altitude = 0;
    int16_t press = 9410;
    altitude = press_to_altitude(press);
    printf("altitude = %d\r\n", altitude);


}



